﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.Domain;
using YYSite.Common.Logging;
using YYSite.Domain.System.Permissions;

namespace YYSite.Application.System.Permissions
{
    public class PermissionService : ApplicationService,IPermissionService
    {
        public PermissionService(ILogger logger,IPermissionRepository permissionRepository):base(logger)
        {
            PermissionRepository = permissionRepository;
        }

        protected IPermissionRepository PermissionRepository { get; }


        public DataGridOutput<Permission> GetPermissionByPage(GetPermissionDataGridInput input)
        {
            return this.PermissionRepository.GetPermissionByPage(input);
        }
    }
}


